import request from '@/utils/request'

/**
 * 省市区
 */
export function getCity(data) {
  return request.get('/city_list', data, {
    // return request.get("/citys", data, {
    login: false,
  })
}
/**
获取开通的城市和筹备中的城市
 */
export function getOpenCity(data) {
  return request.post('/open_city/getOpenCity', data, {
    login: true
  })
}


/**
推荐数据
 */
export function path(data) {
  return request.post('/hitch.common/path', data, {
    login: true
  })
}


/**
轮播图
 */
export function slideshow(data) {
  return request.post('/index/slideshow', data, {
    login: true
  })
}

/**
获取开通的城市和筹备中的城市
 */
export function getWxOpenid(data) {
  return request.post('/user/getWxOpenid', data, {
    login: true
  })
}

/**
获取打车起步价
 */
export function getStartPrice(data) {
  return request.post('/passenger_billing_rule/getStartPrice', data, {
    login: true
  })
}

/**
长途订单详情
 */
export function orderDetail(data) {
  return request.post('/hitch.order/detail', data, {
    login: true
  })
}
/**
取消订单
 */
export function orderCancel(data) {
  return request.post('/hitch.order/cancel', data, {
    login: true
  })
}
/**
确认上车
 */
export function orderAboard(data) {
  return request.post('/hitch.order/aboard', data, {
    login: true
  })
}


/**
乘客下单
 */
export function placeOrder(data) {
  return request.post('/passenger_order/placeOrder', data, {
    login: true
  })
}
/**
根据经纬度获取城市信息
 */
export function getCityByLngAndLat(data) {
  return request.post('/common/getCityByLngAndLat', data, {
    login: true
  })
}
/**
下单成功后呼叫司机
 */
export function continuousOrder(data) {
  return request.post('/order/continuousOrder', data, {
    login: true
  })
}
/**
规划路线
 */
export function planningRouter(data) {
  return request.post('/passenger_order/planningRoute', data, {
    login: true
  })
}

/**
获取预估价
 */
export function countEstimatedPrice(data) {
  return request.post('/passenger_order/countEstimatedPrice', data, {
    login: true
  })
}

/**
反馈平台问题
 */
export function issueApply(data) {
  return request.post('/issue/apply', data, {
    login: true
  })
}
/**
投诉订单
 */
export function complaint(data) {
  return request.post('/passenger_order/complaint', data, {
    login: true
  })
}
/**
支付
 */
export function pay(data) {
  return request.post('/pay/pay', data, {
    login: true
  })
}
/**
一键登录
 */
export function login(data) {
  return request.post('/user/login', data, {
    login: true
  })
}
//获取客服手机号
export function getServiceInfoByCity(data) {
  return request.post('/common/getServiceInfoByCity', data, {
    login: true
  })
}







//地点列表
export function getCityList(data) {
  return request.post('/hitch.common/getCityList', data, {
    login: true
  })
}

//选单大厅
export function lobby(data) {
  return request.post('/hitch.order/lobby', data, {
    login: true
  })
}

//提交订单
export function orderPay(data) {
  return request.post('/hitch.order/pay', data, {
    login: true
  })
}


export function orderInfo(data) {
  return request.post('/hitch.order/info', data, {
    login: true
  })
}

